ProfileAlignmemnt with bug fix