Fix directory ignoring