make set_priority command work correctly (turn off wf mode on the query)