fix loss of team_id on player edit bug + test