Fix "stdout maxBuffer exceeded" error