stop math from being corrupted by backspace

https://www.pivotaltracker.com/story/show/59194686