fix profile creation