fix page navigation bounds