fix static warnings