Put previous symbol in hat.

Only available in math.