fix a bug of the Init method
fix a bug of the Init method