fix equals bug