Invoke bug

Form and dialog activities are preventing invoke to function properly.

Referring to this case: Invoke process will not end - #25 by raven