Fixed routing bug when updating course preferences

This should fix it.