init function call by constructor.

and some fix.