auto close fix