The static last_in value in match_gid() needed to default to -2 so