Is there a way to prevent this pause?

You have a “then” hidden in your code. This is causing that pause. Change it to “and”