Fixes #75: can't refer to 'self' in closure