Fixing flags example