fix autoclose atts