fixes compatibility problem with latest j5