reflect-based closures: bug fix