fixed issues with level editor