fix to parse_blocks