Fixed restart problem.