fix bug with serving json files