fixed compilation error on clang