add the missing log term in both places