Fix compiler error about a global open file
Fix compiler error about global open file