Fix static initialization

Fix global static order problems