fixed bug in clear restart task. It was writing true instead of false