Fixed empty weak pointer issue.