fixed bug in script for course json generation