fixed an issue with the json parsing returning nil