Fix the list.phtml undefined variable issue