fix bug in object editor