Fix: unlink profiles from events when profile is deleted