From Wired:

(Following the resignation of Kirstjen Nielsen in 2019, it appears that Krebs was actually legally due to become the acting secretary of the whole department, but the Trump administration wrongly installed Kevin McAleenan instead.)