incorrect index
fixed incorrect index on list function