fix clang static analyzer