fix div close error