fix problem with File.checkGlobal