After you file

when you amend (federal) you're supposed to ignore penalties and let the IRS recalculate that.

so, you probably did the correct thing for your state amended return.