fix weird JSON errors?