fixed level editor bug