bugfix crash weak persistent handles.