Correct the mistake of InitializeAll function