equals bug fix