fix of errors detected by clang