Fixed error on json responses