Fix problem with length.