fixing broken length.