Fixes add_asset method to check for IP address.