"Too many open files" error fixed