fix bug in jinterface