Fix file load error in new file handling implementation.