query format fix.