Fixed warning thrown when course is not initialised.