Fix Closure serialization exception