fixed detail.php