Fix length in library too