fixed bug in attribute type handle