fix second bug for select all directory