Fixed a bug with importing JSON.