Fix inoperable settings, bug fixes
Fix bitmasks