fix global var leak in FixedWidthMask#apply
change applyDelete/Backspace nested if/else to else if/else