last.php fix