fix wiring race condition on JDK 8