fixed crasher when fetching json without network