Who did Ferdinand repel from Ha nover