I entered the correct AGI, but my return was rejected because it says I don't.
You should use the 2017 AGI from your original Tax Return, NOT your Amended Tax Return.