fixed the load Json data function.