Fixed a bug where unsaved changes to levels were left saved