Query : Lock the range

Sometimes when I run a query in AX3.0 with like Query > DataSource A > Range R When I locked the status of Range R, it will auto add another range from DataSource A. How can I avoid that. thanks.