fixed compile error with Java 6