Fixing prototypical scope inheritance.