Fixed initialization of static vars.