--- lib/Strix.pm 2008/06/16 20:08:28 181 +++ lib/Strix.pm 2008/06/16 21:29:50 182 @@ -236,6 +236,11 @@ } my $depth = $kat->{depth}; + if ( ! defined $pos[ $depth - 2 ] ) { + warn "FIXING CATEGORY: ",dump( $kat ); + $node->{class} = "error"; + $depth--; + } @pos = splice( @pos, 0, $depth ); $pos[ $depth - 1 ]++;