When trying to upgrade research the error message come up, and the amount of gold is still deducted