Fix visibility flag