Fixed htons issue