fix for jdk1.6