fix binary and arithmetic instructions.