BUG: incorrect error: Can't extend something  that already has a prototype chain.