fixed some analyze warnings