fixed a restart error