fix link next block if you are on the last block