Modified list.cpp to fix buges:20140617