Solution for the error in the IP Plotting