fixed issue with masking initial alignment