fix error size of network interface and improve the convert function