fix js error on open nodes