Random CS fixes

| Q             | A
| ------------- | ---
| Bug fix?      | yes (cs only)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | No need