fixing URL paths