removes some NPE UXB's and a redirect loop after team deletion