Fix for autoend issue when someone left from the opposite team