Fixed constructor of Func to initialize all data members