fixed directory navigation glitch