Fixed deleting the blocks