fix profile bugs