Fixed a bug in the addcourse-page