fixed repeated service save problem (bnc#873683#c7)

- 3.1.8

The pull request is more complicated because changing the original alias needs to discard some `const` flags to allow changing it...