fix visibility test