Fix the inherit class will not use same cache probleam.