fix "==" method code