Remove trailing '.' from set flags,It's unclear that it isn't part of the mask that was set.