fixed bug and change java doc