Bug fix details.php