After you file

if the IRS told you, then the only way to correct the error is to file an amended return correcting your name.