fix some bugs related to initialization of variables for new list creation