Fixed crash on courses