Fix std::transform call