fixing after delete active query select