Small error in list function.