Fixed seg fault with nets