Fix error when course or program is not found