fix region filter in queries