Change query mode from dictionary for security purpose.