fix profile variable setting