bugfix of restart