Fix Custom API URL crash