fix relative referencing problem