fix config query