Fixed a JSON loading bug