fixed problem of -nan in string, causing failure in json loads