Fix a few bugs and problems with the entity attribute editor.