fix file not existing bug