Delete course bug fix