Fix to reset.php