fixed java utility