Fixed non-static methods being called.