Fix #38 - Adjust the orientation of ties depending on the stem direction.