Resolved Undefined index: vendor error reported in #issue 129

Resolved Undefined index: vendor error reported in #issue 129