Fixing issue with setting visibility not properly updating dependencies