They already did. The tax is VAT and recent changes on electronic services had exactly the goal you mentioned in mind. It's just that the idea of income tax for companies is silly as it requires the tax authority to verify valuations of transactions (for brands, services etc.) and that will never be doable. The fixing would be to get rid of income tax for companies and substitute it with different taxes (like VAT for example).