Fix decoding of objects with only one attribute