fixed static call to non-static method