Fixed equals check