Fix row lengths