fix static, was crashy