fix order of init