fix malformed de-json