correct marking of cancelled tasks