Fixed more problems related to id as double

Have to check in two places if the requested field
is the id one, and when that is the case turn it
into an int before returning its value as a string.