fix NPE on jdk6