fix relative url bug