fix static vars