fix static warn