Fixed issue with weird JSON parsing.