fix init order bug