fix issue with drawBackground. If there are more than 146 values, background it not filled.
Reason: numSpaces is always 1 --> spaceX and startX become NaN