Fix visibility bug