fixed the error condition for binop