Prototype extend fix