Add some debug code, need to remove it after fix the issue. Change the
cache X code.