Fixing JXWaitUntil