Fix for coredump when IP is given