fix link next block if you are on the last block
Merge pull request #409 from cmgustavo/bug/nextblock-lastblock

fix link next block if you are on the last block