fixed a bug in extract_block