Some fixes after the last refactoring

| Q             | A
| ------------- | ---
| Bug fix?      | Yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | No need