fix failed course bug