Fixed bug with Ipv4, ipv6 and originated prefixes