Fixed a bug that disable the user to move the previous direcory