workaround for jdk version