Fix rare crash on team export