Fixed sfot restart function.