Fix deleting element from profile type