Having fun: He appeared to be in good spirits as he waved to the fans and photographers