Fix getLatestBlocks()