Fix: State file doesn't work for generated service objects.