Bugfix 12192

Fixes the bug 12192 and refactors the doubled enum for the OpenMode into a single one