Possible fix for specifying output type of flag in flagreplaceable.