Fixed parse error on xhr error