Fixed equals method.