Fixed bug which prevented new classes to be added after opening class editor twice