Rework of prototype chains