Fixed some warnings

Visibility, etc.