How to fix a mistake in an accepted paper?
Send them both a revised version and a detailed explanation what needs to be changed. Depending on where your submission is in the production process, they may prefer the former or the latter. Do it as quickly as possible.