fixed issue where incorrect classes were hidden by _visiblility helpers