fixed bug for decoding messages of size 1 ({0}, {1} etc.)