fix static initializer bug