fix relative directory