fix 2.7 closures