Fixed segfault connected with IP address input