fixed with https://github.com/mongodb/mongo-java-driver/commit/b9a115e818b51312161f393c8e18bed3b17855df