Fix restore and reset routes.