Fix attribute deserialization.