fixing bug caused by deletion of test course