fixed crash when there are more than 8 models and the editor is closed