Fixed huge bug when storing OSM ids with int, which is not large enough