fix queryvalecommand