small fix to closures