Small fix to navigation functionality