Deleting the weakreferences