Fixed the datatype for aff_id_new_old