I think I found a way to fix the bug! After the escape abandon companions whose XP is wrong and then invite them again. The XP of all new chars will be equal to the XP of the main char.