fixed clang 3.4 analyzer issues