fixed error in list.php