Fixed some bugs and made the level editor launch much faster.