fixes pagination block on direct page load