Fix score writing

There was an error when writing a larger score
ex: 0 --> 10 or 100 --> 1000