fixing URL structure