change off-by-one errors in SaveBlock