fixed "too many opened files" error during translation