fixing minor issue with directory selection