Fixed deserialising generated attributes