fix finished.php