fix visibility classes being overwritten