Fixed hash and eq method for Op function.