fix the bug in list.js in Resources