fix hybrid in java backend

**do not review yet**