fixed the vertical navigation bug