 From 1806, he cooperated with Josef Liboslav Ziegler (1782–1846), a patriotic priest.In 1821, his wife died and he retired.Hek then lived, among other places, in the Saxonian town of Herrnhut (), a center of Czech Evangelical exile, and for the last years of his life in Kyšperk (today Letohrad) with his daughter.