fix for jdk8