renable auto close