fix the member leak