fix open block query
Merge pull request #5023 from ticoann/dbs3_open_block_query

fix open block query