fixed bug with relative urls