fix regression on scan build