Two leveleditor related bug fixes: