fix multerm multiplication