fix for issue #52; logic bug in XKit.init_flags()
Merge pull request #53 from ewenig/master

fix for issue #52