What did Germany do to avoid an invasion of their country?