Fix the initialization order issue.