Fixed a optimizer bug that caused unnecessary explosion problems in combined terms.