Fixes some random white-space parsing hick-ups

Error only showed in about 10% of the test runs.