fix passing network prefix instead of netmask