Fixed history creation bug
Added corrupted json decoding protection