Fixed fatal flaw in peephole optimizer