fixed Bug: too many open files