fixed order of init issue