Fixed minor error in loading files.