fixed #2 :修正元素未正确隐藏导致的bug