Bugfix in 'prev' and 'next' navigation buttons in classroom

The error happenned with gaps in the order sequence.