Corrected Java 8 error