Fix bug with showing course details for user