Fix clang analyser errors