Reset mLength when changing paths.