Fix how Course data is set in edit()