Fix problem with non-integers in json metadata