fix bug of lose module reference when init