Did you commit all changes at once, as it is possible that the routing database was updated at a point where the network was temporarily broken.

Also, I would be wary of making changes just to make the internal data neater, if they don’t change the intended semantics.