Fixed bug in htons(task id)

Fixed a bug, the task id is unsigned char and shouldn’t be htons().
Which was resulting in zero.