Fixed problem comparing attribute types