Fixed broken behavior for new operator function.