Pagebreak not working properly in the first page load (have to refresh browser to make it works)