fix API URLs