fix for deleting profiles and related data