Fixing bug in realign dealing with repeated sequences.