bug fix for closure inlining