Fix save a file in the dir