Fixes bugs in NOT instruction.