fixed restart (issue #78)