fixed static dispatch error