This is really embarrassing

Today I wanted to sell off my Media RC and I think I have accidentally sold my Q18 Ad research instead (only realized because I still had the building cap).
Is there anything I can do? Or did I just blow 5-6 million caps because I sold Q18 research to the NPC for 200k

SocroCorp