fix undefined static initialization order