fixed some clang warnings