fix multiple definitions of statics