fixed #52 by removing  from closure
Merge pull request #54 from franzose/2.0

fixed #52 by removing $this from closure