fixed close error