Fix inheritance of the prototype methods