Fixed issue where page count was incorrect when the page was not turned.