These anomalies were mostly fixed in the 19th century. Before civil parishes were introduced, the Counties (Detached Parts) Act 1844 transferred many (but not all) parishes which were detached parts of a county to the county in which they were geographically located. The remaining detached parishes were transferred in the 1890s and in 1931. The detached part of the parish of Tetworth, Huntingdonshire, surrounded by Cambridgeshire, remained until the boundaries were changed in 1965.