add missing type attribute