tie output nodes to 0 when stage is invalid