fix non-static methods being called statically