Try to fix dart2js issue with closures