fixed crash in character editor