Fixes bug in view all page navigation