fix a blown query populating drop down for global setting