fixed generating of flag properties