Fix stack traces

Observe the importance of the difference of greedy and ungreedy patterns :)