Add correcct rotation related to path