Fixed bug with adding new course giving errors