Removing transitions to dead states.