Fixed a performance issue in GMGOperator.