fix relative bugs