fixed stop issue with select in subset