Fixed the json type error