fixed race condition for setCourse() at startup