Sensex holds on to morning gains