fix binary operation code generation