Fixed fetcharchive and json malformed expcetion