Fixed bug with multiplication in sum squares expressions