Made sure path_to_file is not changed