How to prioritize latest stimulus of same type?

If my character makes a sound, I have it set up so the AI guard will do a certain sequence (walk there, wait, go back to previous behaviour).

If I make another sound while the AI is doing its “investigate sound” behavior, the AIwill not go to the new sound until it finishes its initial behavior

How can I make it so the latest sound is always the one it checks, overriding the previous behaviour it had already started?