fix a small bug in the type class meth inheritance