Fix obsolete services in state history