Fix initializing procedure