fix validation error

required attribute "type" in an script