TeamRepository fix