Fix a stupid bug handling last block hash comparison