Finally fixed the alignment issue.
Avatar now correctly aligns to right and left foot when he is turning from Left -> Right or reverse.