Since India has a Double Taxation Avoidance Agreement with various countries, including the US, it would typically be very rare for you to be accidentally taxed twice. Should you be double-taxed, do work with a financial advisor to assess the specific provisions under which you can claim a tax credit and recoup your money.