fix profile factory