fixed a bug with the vertical navigation.