fix document class for Sums and Products