fix bugs about macros in file.cc