fixed an issue with entering 0 after an operator

- issue #27