import/export module: bug fix in duplicate course generation