fix error in blocks