fixed bug in expansion of products of logarithms