fixed issue, where after last page there were numbered pages