Stocks erase early losses, mixed in midday trading