fixed memory link closes #26