On Saturday, he got the Indianapolis Colts' offense in sync, bounced back from yet another big hit and led them to a go-ahead touchdown before leaving in the second quarter.

Yes, five days after a mediocre performance in his first home start in more than 19 months, Luck looked much sharper as the Colts hung on for a 23-17 victory over San Francisco.

"I really wanted to feel like we created some type of rhythm and we did," he said. "We put a sustained drive together, and the other ones, we made some mistakes. But getting in rhythm was something I really wanted to see."

He was in good company.

Coach Frank Reich and Colts fans also wanted to see improvement in what's likely Luck's final action of the preseason.

The results were better.

Luck scrambled for a 15-yard run on third-and-13 then threw a 15-yard TD pass to a leaping Eric Ebron on the next play to give Indy a 7-3 lead midway with 8:47 left in the first half. He finished 8 of 10 with 90 yards and took one sack.

Christine Michael's 1-yard TD plunge late in the third quarter made it 14-9, a lead Indy never relinquished.

Otherwise, it was a tough day for the Colts, who struggled to establish the run - and couldn't stop San Francisco's physical ground game in the first half.

"They did a nice job running the ball and just like offensively in the run game, we need to improve defensively in the run game," Reich said after his defense allowed 126 yards rushing.

Somehow, the Colts kept the 49ers out of the end zone until the final minutes and took advantage of Jacoby Brissett's 53-yard pass play to Seantavius Jones late in the third quarter. Two plays later, Michael scored to give Indy a 14-9 lead.

It was enough to give Luck his first home win since Jan. 1, 2017.

Jimmy Garoppolo, meanwhile, couldn't get the ball into the end zone. He was 9 of 19 for 135 yards, leading the 49ers to only two field goals before departing in the third quarter. Alfred Morris carried 17 times for 84 yards, doing the bulk of his work in the first half.

"There were some good plays, there were some other plays I felt rusty on, but overall I felt pretty good," said Sherman, who is coming back from a torn Achilles tendon. "I would have preferred (defending a deep ball)."

Ebron caught five passes for 54 yards for Indy, which got starting safety Malik Hooker back. He missed the second half of his rookie season after tearing two ligaments in his right knee.

NATIONAL ANTHEM

When the 49ers visited Indianapolis in October, nearly two dozen players demonstrated by kneeling during the national anthem - prompting Vice President Mike Pence to walk out of Lucas Oil Stadium. This time, nobody took a knee while the anthem played. The only demonstration came from San Francisco receiver Marquise Goodwin, who raised his fist again.

INJURIES

49ers: Linebacker Reuben Foster did not return after being diagnosed with a concussion in the third quarter, and cornerback Jimmie Ward left in the first half with a quadriceps injury. Shanahan said he doesn't expect to Foster in the preseason finale. Receiver Marquise Goodwin also left in the first half with a hand injury but returned. San Francisco played without running backs Jerick McKinnon (knee), Matt Breida (shoulder) and Joe Williams (ribs) or backup offensive linemen Erik Magnuson (hamstring) and Gary Gilliam.