fixed memory corruption; disabled masking during alignment in stage 3 (for all masking modes)