Fix initialization order bug.