Fixed bug in list.js