bugfix for the errors found in block test (block.c).