fix attribute type