fix for endorsed dir