Fix a sequence issue where the header search query value was updated after the update event was published