Fix lengths.