common and log-regr fixes