In June 1840, while on a public carriage ride, Albert and the pregnant Victoria were shot at by Edward Oxford, who was later judged insane. Neither Albert nor Victoria was hurt and Albert was praised in the newspapers for his courage and coolness during the attack. Albert was gaining public support as well as political influence, which showed itself practically when, in August, Parliament passed the Regency Act 1840 to designate him regent in the event of Victoria's death before their child reached the age of majority. Their first child, Victoria, named after her mother, was born in November. Eight other children would follow over the next seventeen years. All nine children survived to adulthood, which was remarkable for the era and which biographer Hermione Hobhouse credited to Albert's "enlightened influence" on the healthy running of the nursery. In early 1841, he successfully removed the nursery from Lehzen's pervasive control, and in September 1842, Lehzen left Britain permanently—much to Albert's relief.