fix for java 6