Fixes a bug in multiple inheritance where the parent prototype was polluted