fix directory for json file save