Fix create-course bugs