Fix expand_log for negative terms again.