Fixed bug in schema editor