bad binary operand fix