fix list.php for duplicates