bugfix for updated java api