removeSelected method fixed