Fix minor bug in object editor