fix a bug on list_size