fixed bug with relative url