fix equal calculation bug

fix equal calculation bug