fixed inactive course bug