Kim’s grandfather established himself by purging pro-China, pro-USSR factions, I think Kim knows how to act independented of China.
His progeny didn’t maintain the independence. How could they? China was not nearly so strong in KIS’s day.