fixed setdefault issue in statefulbot