Fixed bad reference on DoWhileTransform