DP Transfer Tax Filing Issue

When shares are transferred from one DP to another, the old DP classifies the transfer as a sell transaction, which will be treated as capital gains during tax filing. How can this issue be addressed while filing taxes?