fix file loading error