Fix book selectivity code
check q-search hash move for validity before using