fix for resolve_url