Fixed bug caused by using slices instead of byteslices.