details.php fix