Fixed htons() in cycle.