fix the java io library callback part