Correct Java 7 error