equals bug fixed