bug fix for equality operator

special thanks to xinyuan