fix bytebuffer byte extraction

Signed-off-by: Christian Lüthold <biocodr@gmail.com>