fix profile deletion