Fix bug with stack corruption
Merge pull request #11 from rampage644/bug

Fix bug with stack corruption