fixing json loading