fixed bug in estimateEffects()