fix small bug in refinetformestimate