fix bug of equal operator