Fix resultStack not being call correctly