bugfix Leg.getRelativeDirection()