Fixed bug with decrementing percentage (extra characters staying at the end of the line)