fix decoder deserialization