Fixed a problem with waitUntil.