Fix issue #718

The cause of the issue was not refreshing from buffer, if the fist digit was 0.