fixing bugs in creating course