Fixing behaviour of alignment in case of ends of unrelated sequences.