Apparently fix "take" failure on JVM