fix JDK1.6 Compatibility