fixed Java dynamic call bug