Oil prices rise on bargain hunting as demand worries weigh