fix profile header not crashing on rotation