fixed copy/paste error in attribute type parsing