Who restored Polish control of the region?