You file an amended return form 1040X ( and one for your state ... check the program for the correct form) and when your incorrect refund comes you can send back the excess refund. If you do not have the money then send what you can and the IRS will be happy to bill you and add penalties/interest to the outstanding balance.