Fix of lambda function. Strange but it worked on MacOSX and iOS and didin't on Win32