workaround ugly lambda type-deref bug