Fix script to create course