Put "initxx" functions into protected.

Put these init functions into protected to avoid do initialization more than one time. Do initialization more than one time may cause bugs.