fixed bug in creating courses