Restart works correctly