fix scope bug in blk