fix for issue #52; logic bug in XKit.init_flags()