Fix: avoid nodejs crash