fix for std::reference_wrapper