Fixing bug on json