fix relative path bugs