fixed init order bug