fixed java hatred overflow