fixed java problem