Bug fixes, level editor