fix the error: invalid operand to binary