Fix size calculation for error nodes