cabinet: Fix the regression caused by 4046075462c00f4479f185d1c0514584ff851223.