Corrected minor output error: Missing paranthesis end
Bugfix: The page counter was not updated if the page already existed