Logical error in operator fixed