   displayCourse: ->
     return if @curr > @num_courses
     unless User.current is null
+      @prev = @curr
+      @curr = +@curr + 1
       User.current.setPreference 'prev_course', @prev
+      console.log 'SET PREV COURSE TO: ', @prev
       @loadContent()
       @course_el.fadeIn(@transitionTime)
       @subject_el.fadeOut(@transitionTime)
       @subject_el.toggleClass("hidden")
       @course_el.toggleClass("visible")
-      @prev = @curr
-      @curr = +@curr + 1
 
   hideCourse: ->
     @subject_el.fadeIn(@transitionTime)

    @course_el.hide()

    # get content
    @content = miniCourseContent
    
    # keep track of courses
    @count = 0 # fake classification counter

    unless User.current is null
      User.current.setPreference 'course', 'yes'
      User.current.setPreference 'prev_course', 0
      @prev = User.current?.preferences[zooniverse.Api.current.project]['prev_course']
      @curr = 0

module.exports = MiniCourse
