Fix drawBackground for more than 150 values

 If there are more than 146 values, background is not filled even if set to true.

Reason: numSpaces is always 1 --> spaceX and startX become NaN