fixed removal of the drained processes from the set