If you receive a refund from original return, file an amendment and owe taxes, what happens to refund?

i received a refund, then received a 1099, i think i will owe, will i have to return the refund?