fixed default case for ip address