fix #2 - invalid pointer
Merge pull request #3 from bmizerany/issues2

fix #2 - invalid pointer