fixed estimation bug