improving main routing
fix error during loading a task from not existing course