attempt to fix profile switch problem