Fixed division by zero error in total pages counting.
Merge branch 'origin/master'