check conf_weight for positive value
properly indent