fixes navigation centering problem