Fixed by reference on method in decode.

I changed this because array_shift(unpack()) throws a warning.