bugfix in estimaterisks