correct bug on process restart