checking for undefined in net name to get rid of errors