Fix crash with undocumented flags