   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)


    User.on 'change', =>
      # needs to be changed to read user's last course number
      @resetCourse() #unless User.current?.preferences[Api.current.project]?.hasOwnProperty 'prev_course'
      if User.current?
        @prompt_el.toggleClass 'signed-in'
        @prompt_el.find('.course-button').show()

    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
