fix static init order