Correcting bug that prevented the json from updating