fixed htons issue