fix profile error