fix malformed smart.json