when a task is set as finished, its priority is set to 0