/mine: ceil() to the last page and set the hash as well on >last.
Merge pull request #150 from Adys/master

/mine: ceil() to the last page and set the hash as well on >last.