Fix static initialization order crash.