Fixed compilation error in jdk 1.6 (works in 1.7)