Fix static structures' & some unit templates.