Fixed tasks being constantly re activated when already active.