Fixing for Java 6.