fix "==" method bug