Stock hold gains, erasing early losses