Fixed htons issues