fixed a compile issue under jdk 5/6