fix the lends tag inside of closures (#573)