Fixing minor compilation issue on Java8