fix open too many files