add missing 'type' attribute