Fix waitUntilMatch function