Fix segfault

in Signal temporary parameters were captured in a lambda