fixed clang warnings