fixed crash on nil vendor ID