Fixes the 'unable to open json file' error