clang analyzer fixes