fixed a crash when a for when a file doesnt't exist