fix wrong visibility modificators