fix flipping pages back when the previous chapter or volume has a deeper file hierarchy