Gas-flaring restores oil production target