Fix crash on statement cleanup
Merge pull request #160 from LinuxJedi/stmt_crash

Fix crash on statement cleanup