fix course generation for old courses