bug fix for empty course