Fix query mode.
Fix query mode.