Fix getNormalizedDirection to flip the direction for side always.