fix order of init
fix order of init