fix method patching and invoking of original functions
Merge pull request #5 from jankuca/patch_1

fix method patching and invoking of original functions