fixed error: too many open files