fix a bug in operand size optimization