Fix visibility flag in decorator.