Fixed issue with the console colour occassionally being wrong
This was due to a race condition