Fixed handling of running task in Sequence and Selector