Fixed compilation error on JDK 1.6