Handle delegation call

If it's useful to you for fixing #38, here's the fix I made in my fork.