Fixed class editor's bug which caused error when trying to run project, enhanced save feature