Fix to chaining to avoid fragmented alignments.