fixed "hidden" logic