Automatically Update Previous Sales Invoice Template

was the theme a custom theme or one of the default themes?

read the below topic if it helps.