fixed close crash