fix static warning