fixing:#372 avoid some undefined error