fix captured 'this' issue, fixes #58