- next unless exists $pagestate{$page}{$id}{R};
- if (defined $pagestate{$page}{$id}{R}
- and $pagestate{$page}{$id}{R}->is_started()) {
- $pagestate{$page}{$id}{R}->stop;
+ if (exists $pagestate{$page}{$id}{R}) {
+ if (defined $pagestate{$page}{$id}{R}
+ and $pagestate{$page}{$id}{R}->is_started()) {
+ $pagestate{$page}{$id}{R}->stop;
+ }
+ delete $pagestate{$page}{$id}{R};
+ }
+ if (exists $pagestate{$page}{$id}{fignum}) {
+ delete $pagestate{$page}{$id}{fignum}