Fixed bug in interface

unpack advanced of 1 byte instead of the size of the requested data.