Made item.php less failure-prone