Fixing bug in query filter update.