Fix javascript issue on List View (regression)