Fix unit build initialization bug