Your problem seems closely related to
I may misunderstand this, but the trick with the let block pointed out at the end of this thread may apply to your case as well.
Your problem seems closely related to
I may misunderstand this, but the trick with the let block pointed out at the end of this thread may apply to your case as well.