fix a bug that will automatically creates file when file dosen't exist.