Fixing the bug when you specialize a method, members defined in that method cannot be used in the new method