Fix string/number confusion in API responses