prototype chain fix