fix #253 type attribute names being ignored