fixed json formatting problem in loading data