fixed some nav bugs after deleting a file.