fix JDK 1.6 compatible