change_dir.php, fixed functions.php bug