fix bug with drafts showing up in the result list when not logged in. Fixed bug with Constant state changing on query override.