fix visibility errors