fix lambda type check