fix equals of fieldtype