Fixed equals to return correct result.