fix static code