Fix directory selection