Use stack->mod instead of stack->target_mod