fix use of mutable variable in closure