Fix empty course objects bug