Fixed bug with inherited visibility