fixed bug on cluster restart