fix statics bug