fix cap task def