decode: bugfix