fix run_query.sh