when importing exercise from JSON, ensure that course id is set