fix issue if page is empty