fix bug on relative url