fix static dispatch