fixed an issue with clang compilation errors