fix details.php