fix profile errors