Fixed bugs with when tasks are changed from completed to active.