Fix bug, calculate num of pages whit ceil function and deleting +1 in page rows -refs #6846