Fix recursive calls tracked in wrong order

Fixes #13
Merge pull request #14 from elwayman02/fix-call-order

Fix recursive calls tracked in wrong order