fix for java6