fix id to integer