fixed how URLs are built