Fixes badcfg issue
Fixes badcfg for query action