Fixed a bug with inconsistent position of JSON.parse