Empty page in pagination fixed