Bugfix: wrong context use in labda function