bug fix to constructalignment input