fixed settings controller for queries