fix compatible problem with JDK6